package com.bite.mybatis.service;

import com.bite.mybatis.mapper.UserInfoMapper;
import com.bite.mybatis.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public List<UserInfo> selectAll(){
        List<UserInfo> listret = new ArrayList<>();
        listret = userInfoMapper.selectAll();
        return listret;
    }

    public List<UserInfo> selectById(Integer id){
        return userInfoMapper.selectById(id);
    }
}





